﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ERPMVC.Models.contasapagar>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Deletar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Deletar</h2>

    <h3>Tem certeza que deseja deletar?</h3>
    <fieldset>
        <legend>Campos</legend>
        
        <div class="display-label" style="font-weight:bold">Documento:</div>
        <div class="display-field" ><%= Html.Encode(Model.documento) %></div>
        
        <div class="display-label" style="font-weight:bold">Favorecido:</div>
        <div class="display-field"><%= Html.Encode(Model.favorecido) %></div>
        
        <div class="display-label" style="font-weight:bold">Descrição:</div>
        <div class="display-field"><%= Html.Encode(Model.descricao) %></div>
        
        <div class="display-label" style="font-weight:bold">Título:</div>
        <div class="display-field"><%= Html.Encode(Model.titulo) %></div>
        
        <div class="display-label" style="font-weight:bold">Multa:</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.multa)) %></div>
        
        <div class="display-label" style="font-weight:bold">Juros:</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.juros)) %></div>
        
        <div class="display-label" style="font-weight:bold">Vencimento:</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.vencimento)) %></div>
        
        <div class="display-label" style="font-weight:bold">Pago</div>
        <div class="display-field"> <% if((bool)Model.Pago == true){ %>
                Sim 
                <% }else{%>
                Não
                <%} %></div>
        
        <div class="display-label" style="font-weight:bold">Conta:</div>
        <div class="display-field"><%= Html.Encode(Model.ContaBancaria) %></div>
        
        <div class="display-label" style="font-weight:bold">ContaID:</div>
        <div class="display-field"><%= Html.Encode(Model.ContaID) %></div>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Voltar", "Index") %>
        </p>
    <% } %>

</asp:Content>

